package com.tpp.threat_perception_platform.pojo;

import java.util.Date;

/**
 * 
 * @TableName host_app_vul
 */
public class HostAppVul {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String macAddress;

    /**
     * 
     */
    private Integer appVulId;

    /**
     * 
     */
    private String appVulName;

    /**
     * 
     */
    private String appVulDesc;

    /**
     * 
     */
    private String appVulFlag;

    /**
     * 
     */
    private String appVulPath;

    /**
     * 
     */
    private String appVulRequestType;

    /**
     * 
     */
    private String appVulPayload;

    /**
     * 
     */
    private Date detectTime;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * 
     */
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * 
     */
    public Integer getAppVulId() {
        return appVulId;
    }

    /**
     * 
     */
    public void setAppVulId(Integer appVulId) {
        this.appVulId = appVulId;
    }

    /**
     * 
     */
    public String getAppVulName() {
        return appVulName;
    }

    /**
     * 
     */
    public void setAppVulName(String appVulName) {
        this.appVulName = appVulName;
    }

    /**
     * 
     */
    public String getAppVulDesc() {
        return appVulDesc;
    }

    /**
     * 
     */
    public void setAppVulDesc(String appVulDesc) {
        this.appVulDesc = appVulDesc;
    }

    /**
     * 
     */
    public String getAppVulFlag() {
        return appVulFlag;
    }

    /**
     * 
     */
    public void setAppVulFlag(String appVulFlag) {
        this.appVulFlag = appVulFlag;
    }

    /**
     * 
     */
    public String getAppVulPath() {
        return appVulPath;
    }

    /**
     * 
     */
    public void setAppVulPath(String appVulPath) {
        this.appVulPath = appVulPath;
    }

    /**
     * 
     */
    public String getAppVulRequestType() {
        return appVulRequestType;
    }

    /**
     * 
     */
    public void setAppVulRequestType(String appVulRequestType) {
        this.appVulRequestType = appVulRequestType;
    }

    /**
     * 
     */
    public String getAppVulPayload() {
        return appVulPayload;
    }

    /**
     * 
     */
    public void setAppVulPayload(String appVulPayload) {
        this.appVulPayload = appVulPayload;
    }

    /**
     * 
     */
    public Date getDetectTime() {
        return detectTime;
    }

    /**
     * 
     */
    public void setDetectTime(Date detectTime) {
        this.detectTime = detectTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HostAppVul other = (HostAppVul) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMacAddress() == null ? other.getMacAddress() == null : this.getMacAddress().equals(other.getMacAddress()))
            && (this.getAppVulId() == null ? other.getAppVulId() == null : this.getAppVulId().equals(other.getAppVulId()))
            && (this.getAppVulName() == null ? other.getAppVulName() == null : this.getAppVulName().equals(other.getAppVulName()))
            && (this.getAppVulDesc() == null ? other.getAppVulDesc() == null : this.getAppVulDesc().equals(other.getAppVulDesc()))
            && (this.getAppVulFlag() == null ? other.getAppVulFlag() == null : this.getAppVulFlag().equals(other.getAppVulFlag()))
            && (this.getAppVulPath() == null ? other.getAppVulPath() == null : this.getAppVulPath().equals(other.getAppVulPath()))
            && (this.getAppVulRequestType() == null ? other.getAppVulRequestType() == null : this.getAppVulRequestType().equals(other.getAppVulRequestType()))
            && (this.getAppVulPayload() == null ? other.getAppVulPayload() == null : this.getAppVulPayload().equals(other.getAppVulPayload()))
            && (this.getDetectTime() == null ? other.getDetectTime() == null : this.getDetectTime().equals(other.getDetectTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMacAddress() == null) ? 0 : getMacAddress().hashCode());
        result = prime * result + ((getAppVulId() == null) ? 0 : getAppVulId().hashCode());
        result = prime * result + ((getAppVulName() == null) ? 0 : getAppVulName().hashCode());
        result = prime * result + ((getAppVulDesc() == null) ? 0 : getAppVulDesc().hashCode());
        result = prime * result + ((getAppVulFlag() == null) ? 0 : getAppVulFlag().hashCode());
        result = prime * result + ((getAppVulPath() == null) ? 0 : getAppVulPath().hashCode());
        result = prime * result + ((getAppVulRequestType() == null) ? 0 : getAppVulRequestType().hashCode());
        result = prime * result + ((getAppVulPayload() == null) ? 0 : getAppVulPayload().hashCode());
        result = prime * result + ((getDetectTime() == null) ? 0 : getDetectTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", macAddress=").append(macAddress);
        sb.append(", appVulId=").append(appVulId);
        sb.append(", appVulName=").append(appVulName);
        sb.append(", appVulDesc=").append(appVulDesc);
        sb.append(", appVulFlag=").append(appVulFlag);
        sb.append(", appVulPath=").append(appVulPath);
        sb.append(", appVulRequestType=").append(appVulRequestType);
        sb.append(", appVulPayload=").append(appVulPayload);
        sb.append(", detectTime=").append(detectTime);
        sb.append("]");
        return sb.toString();
    }
}